package day6;

import javafx.collections.ArrayChangeListener;

import java.util.ArrayList;

public class ArrayListMethods {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("易建联");
        list.add("姚明");
        list.add("王治郅");
        boolean a = list.add("啦啦队");
        String d = list.get(0);
        int num = list.size();
        System.out.println(list);
        String e = list.remove(2);
        System.out.println(a);
        System.out.println(list);
        System.out.println("展示的是" + d);
        System.out.println("此时长度是："+ num);
        System.out.println("被删除的是：" + e);

    }

}
